/*
 * XML Type:  RecurringPaymentResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.RecurringPaymentResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML RecurringPaymentResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class RecurringPaymentResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractRecurringPaymentResponseImpl implements net.ofx.types.x2003.x04.RecurringPaymentResponse
{
    
    public RecurringPaymentResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PAYEELSTID$0 = 
        new javax.xml.namespace.QName("", "PAYEELSTID");
    private static final javax.xml.namespace.QName CURDEF$2 = 
        new javax.xml.namespace.QName("", "CURDEF");
    private static final javax.xml.namespace.QName RECURRINST$4 = 
        new javax.xml.namespace.QName("", "RECURRINST");
    private static final javax.xml.namespace.QName PMTINFO$6 = 
        new javax.xml.namespace.QName("", "PMTINFO");
    private static final javax.xml.namespace.QName INITIALAMT$8 = 
        new javax.xml.namespace.QName("", "INITIALAMT");
    private static final javax.xml.namespace.QName FINALAMT$10 = 
        new javax.xml.namespace.QName("", "FINALAMT");
    private static final javax.xml.namespace.QName EXTDPAYEE$12 = 
        new javax.xml.namespace.QName("", "EXTDPAYEE");
    
    
    /**
     * Gets the "PAYEELSTID" element
     */
    public java.lang.String getPAYEELSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYEELSTID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "PAYEELSTID" element
     */
    public net.ofx.types.x2003.x04.PayeeIdType xgetPAYEELSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeIdType target = null;
            target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().find_element_user(PAYEELSTID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "PAYEELSTID" element
     */
    public void setPAYEELSTID(java.lang.String payeelstid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYEELSTID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PAYEELSTID$0);
            }
            target.setStringValue(payeelstid);
        }
    }
    
    /**
     * Sets (as xml) the "PAYEELSTID" element
     */
    public void xsetPAYEELSTID(net.ofx.types.x2003.x04.PayeeIdType payeelstid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeIdType target = null;
            target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().find_element_user(PAYEELSTID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().add_element_user(PAYEELSTID$0);
            }
            target.set(payeelstid);
        }
    }
    
    /**
     * Gets the "CURDEF" element
     */
    public net.ofx.types.x2003.x04.CurrencyEnum.Enum getCURDEF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CURDEF$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.CurrencyEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CURDEF" element
     */
    public net.ofx.types.x2003.x04.CurrencyEnum xgetCURDEF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CurrencyEnum target = null;
            target = (net.ofx.types.x2003.x04.CurrencyEnum)get_store().find_element_user(CURDEF$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CURDEF" element
     */
    public void setCURDEF(net.ofx.types.x2003.x04.CurrencyEnum.Enum curdef)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CURDEF$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CURDEF$2);
            }
            target.setEnumValue(curdef);
        }
    }
    
    /**
     * Sets (as xml) the "CURDEF" element
     */
    public void xsetCURDEF(net.ofx.types.x2003.x04.CurrencyEnum curdef)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CurrencyEnum target = null;
            target = (net.ofx.types.x2003.x04.CurrencyEnum)get_store().find_element_user(CURDEF$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CurrencyEnum)get_store().add_element_user(CURDEF$2);
            }
            target.set(curdef);
        }
    }
    
    /**
     * Gets the "RECURRINST" element
     */
    public net.ofx.types.x2003.x04.RecurringInstructions getRECURRINST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInstructions target = null;
            target = (net.ofx.types.x2003.x04.RecurringInstructions)get_store().find_element_user(RECURRINST$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "RECURRINST" element
     */
    public void setRECURRINST(net.ofx.types.x2003.x04.RecurringInstructions recurrinst)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInstructions target = null;
            target = (net.ofx.types.x2003.x04.RecurringInstructions)get_store().find_element_user(RECURRINST$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RecurringInstructions)get_store().add_element_user(RECURRINST$4);
            }
            target.set(recurrinst);
        }
    }
    
    /**
     * Appends and returns a new empty "RECURRINST" element
     */
    public net.ofx.types.x2003.x04.RecurringInstructions addNewRECURRINST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInstructions target = null;
            target = (net.ofx.types.x2003.x04.RecurringInstructions)get_store().add_element_user(RECURRINST$4);
            return target;
        }
    }
    
    /**
     * Gets the "PMTINFO" element
     */
    public net.ofx.types.x2003.x04.PaymentInfo getPMTINFO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentInfo target = null;
            target = (net.ofx.types.x2003.x04.PaymentInfo)get_store().find_element_user(PMTINFO$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "PMTINFO" element
     */
    public void setPMTINFO(net.ofx.types.x2003.x04.PaymentInfo pmtinfo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentInfo target = null;
            target = (net.ofx.types.x2003.x04.PaymentInfo)get_store().find_element_user(PMTINFO$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PaymentInfo)get_store().add_element_user(PMTINFO$6);
            }
            target.set(pmtinfo);
        }
    }
    
    /**
     * Appends and returns a new empty "PMTINFO" element
     */
    public net.ofx.types.x2003.x04.PaymentInfo addNewPMTINFO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentInfo target = null;
            target = (net.ofx.types.x2003.x04.PaymentInfo)get_store().add_element_user(PMTINFO$6);
            return target;
        }
    }
    
    /**
     * Gets the "INITIALAMT" element
     */
    public java.lang.String getINITIALAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INITIALAMT$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "INITIALAMT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetINITIALAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(INITIALAMT$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "INITIALAMT" element
     */
    public boolean isSetINITIALAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INITIALAMT$8) != 0;
        }
    }
    
    /**
     * Sets the "INITIALAMT" element
     */
    public void setINITIALAMT(java.lang.String initialamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INITIALAMT$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INITIALAMT$8);
            }
            target.setStringValue(initialamt);
        }
    }
    
    /**
     * Sets (as xml) the "INITIALAMT" element
     */
    public void xsetINITIALAMT(net.ofx.types.x2003.x04.AmountType initialamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(INITIALAMT$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(INITIALAMT$8);
            }
            target.set(initialamt);
        }
    }
    
    /**
     * Unsets the "INITIALAMT" element
     */
    public void unsetINITIALAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INITIALAMT$8, 0);
        }
    }
    
    /**
     * Gets the "FINALAMT" element
     */
    public java.lang.String getFINALAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FINALAMT$10, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "FINALAMT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetFINALAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(FINALAMT$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "FINALAMT" element
     */
    public boolean isSetFINALAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FINALAMT$10) != 0;
        }
    }
    
    /**
     * Sets the "FINALAMT" element
     */
    public void setFINALAMT(java.lang.String finalamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FINALAMT$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FINALAMT$10);
            }
            target.setStringValue(finalamt);
        }
    }
    
    /**
     * Sets (as xml) the "FINALAMT" element
     */
    public void xsetFINALAMT(net.ofx.types.x2003.x04.AmountType finalamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(FINALAMT$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(FINALAMT$10);
            }
            target.set(finalamt);
        }
    }
    
    /**
     * Unsets the "FINALAMT" element
     */
    public void unsetFINALAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FINALAMT$10, 0);
        }
    }
    
    /**
     * Gets the "EXTDPAYEE" element
     */
    public net.ofx.types.x2003.x04.ExtendedPayee getEXTDPAYEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtendedPayee target = null;
            target = (net.ofx.types.x2003.x04.ExtendedPayee)get_store().find_element_user(EXTDPAYEE$12, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "EXTDPAYEE" element
     */
    public boolean isSetEXTDPAYEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EXTDPAYEE$12) != 0;
        }
    }
    
    /**
     * Sets the "EXTDPAYEE" element
     */
    public void setEXTDPAYEE(net.ofx.types.x2003.x04.ExtendedPayee extdpayee)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtendedPayee target = null;
            target = (net.ofx.types.x2003.x04.ExtendedPayee)get_store().find_element_user(EXTDPAYEE$12, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ExtendedPayee)get_store().add_element_user(EXTDPAYEE$12);
            }
            target.set(extdpayee);
        }
    }
    
    /**
     * Appends and returns a new empty "EXTDPAYEE" element
     */
    public net.ofx.types.x2003.x04.ExtendedPayee addNewEXTDPAYEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtendedPayee target = null;
            target = (net.ofx.types.x2003.x04.ExtendedPayee)get_store().add_element_user(EXTDPAYEE$12);
            return target;
        }
    }
    
    /**
     * Unsets the "EXTDPAYEE" element
     */
    public void unsetEXTDPAYEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXTDPAYEE$12, 0);
        }
    }
}
